package com.shensi.adminCollect.controller.station;

import com.shensi.common.core.domain.ResultData;
import com.shensi.adminCollect.domain.station.EnterpriseGrowUpValueSetting;
import com.shensi.adminCollect.service.station.IEnterpriseGrowUpValueSettingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @date 2024/1/15
 */
@RestController
@RequestMapping(value = "/enterprise/growUpValueSetting")
public class EnterpriseGrowUpValueSettingController {

    @Autowired
    private IEnterpriseGrowUpValueSettingService enterpriseGrowUpValueSettingService;

    @GetMapping("query")
    public ResultData<EnterpriseGrowUpValueSetting> querySetting(){
        return ResultData.success(enterpriseGrowUpValueSettingService.querySetting());
    }

    @PostMapping("save")
    public ResultData saveSetting(@RequestBody EnterpriseGrowUpValueSetting setting){
        enterpriseGrowUpValueSettingService.saveSetting(setting);
        return ResultData.success();
    }

}
